package com.vigor.bear.web.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Service;

import com.vigor.bear.web.bean.QueryModel;
import com.vigor.bear.web.bean.Student;
import com.vigor.bear.web.dao.StudentMapper;
import com.vigor.bear.web.service.StudentService;

@Service
public class StudentServiceImpl implements StudentService {

	@Resource
	private StudentMapper mapper;

	@Override
	public List<Student> all(RowBounds pagination, String sSearch) {
		return mapper.all(pagination, sSearch);
	}

	@Override
	public List<Student> all(QueryModel queryModel) {
		return mapper.all(queryModel.getPagination(), queryModel.getsSearch());
	}

	@Override
	public List<Student> search(RowBounds pagination, Student student) {
		return mapper.search(pagination, student);
	}

}
